package com.itheima.day10.ZuoYe;

public class ZuoYe1 {
    public static int sum(int n){
        if(n == 10){
            return 1;
        }
        return (sum(n+1)+1)*2;
    }

    public static void main(String[] args) {
        System.out.println(sum(1));
    }
}
